package com.ruoyi.platform.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.platform.mapper.TTempBlacklistPhoneMapper;
import com.ruoyi.platform.domain.TTempBlacklistPhone;
import com.ruoyi.platform.service.ITTempBlacklistPhoneService;

/**
 * 手机号临时黑名单Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-19
 */
@Service
public class TTempBlacklistPhoneServiceImpl implements ITTempBlacklistPhoneService 
{
    @Autowired
    private TTempBlacklistPhoneMapper tTempBlacklistPhoneMapper;

    /**
     * 查询手机号临时黑名单
     * 
     * @param tempBlacklistPhoneId 手机号临时黑名单主键
     * @return 手机号临时黑名单
     */
    @Override
    public TTempBlacklistPhone selectTTempBlacklistPhoneByTempBlacklistPhoneId(Long tempBlacklistPhoneId)
    {
        return tTempBlacklistPhoneMapper.selectTTempBlacklistPhoneByTempBlacklistPhoneId(tempBlacklistPhoneId);
    }

    /**
     * 查询手机号临时黑名单列表
     * 
     * @param tTempBlacklistPhone 手机号临时黑名单
     * @return 手机号临时黑名单
     */
    @Override
    public List<TTempBlacklistPhone> selectTTempBlacklistPhoneList(TTempBlacklistPhone tTempBlacklistPhone)
    {
        return tTempBlacklistPhoneMapper.selectTTempBlacklistPhoneList(tTempBlacklistPhone);
    }

    /**
     * 新增手机号临时黑名单
     * 
     * @param tTempBlacklistPhone 手机号临时黑名单
     * @return 结果
     */
    @Override
    public int insertTTempBlacklistPhone(TTempBlacklistPhone tTempBlacklistPhone)
    {
        return tTempBlacklistPhoneMapper.insertTTempBlacklistPhone(tTempBlacklistPhone);
    }

    /**
     * 修改手机号临时黑名单
     * 
     * @param tTempBlacklistPhone 手机号临时黑名单
     * @return 结果
     */
    @Override
    public int updateTTempBlacklistPhone(TTempBlacklistPhone tTempBlacklistPhone)
    {
        return tTempBlacklistPhoneMapper.updateTTempBlacklistPhone(tTempBlacklistPhone);
    }

    /**
     * 批量删除手机号临时黑名单
     * 
     * @param tempBlacklistPhoneIds 需要删除的手机号临时黑名单主键
     * @return 结果
     */
    @Override
    public int deleteTTempBlacklistPhoneByTempBlacklistPhoneIds(Long[] tempBlacklistPhoneIds)
    {
        return tTempBlacklistPhoneMapper.deleteTTempBlacklistPhoneByTempBlacklistPhoneIds(tempBlacklistPhoneIds);
    }

    /**
     * 删除手机号临时黑名单信息
     * 
     * @param tempBlacklistPhoneId 手机号临时黑名单主键
     * @return 结果
     */
    @Override
    public int deleteTTempBlacklistPhoneByTempBlacklistPhoneId(Long tempBlacklistPhoneId)
    {
        return tTempBlacklistPhoneMapper.deleteTTempBlacklistPhoneByTempBlacklistPhoneId(tempBlacklistPhoneId);
    }
}
